<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>发布留言－Leooman 留言板</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link href="__STATIC__/css/comment.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/css/backstage.css">
    <link rel="stylesheet" href="__STATIC__/css/jquery-ui.min.css">
    <script src="__STATIC__/js/jquery.min.js"></script>
    <script src="__STATIC__/js/jquery-ui.min.js"></script>
    <script src="__STATIC__/js/vue.min.js"></script>
</head>
<body>
<div class="container" style="margin-top:20px;">
{include file='index/contact'}
<div>
    <form class="form-horizontal" action="__ROOT__/index/index/getData" method="post">

    <input name="title" type="text" class="input-text input-180" placeholder="标题" autocomplete="off">
    <input name="startDate" id="startDate" type="text" class="input-date input-text" placeholder="时间：从">
    <input name="endDate" id="endDate" type="text" class="input-date input-text" placeholder="时间：到">
    <button type="submit" class="input-button input-submit">查询</button>

    </form>
</div>
    <table class="table">
    	<tr class="title">
        	<td>编号</td>
            <td>标题</td>
            <td>评论</td>
            <td>发布日期</td>
            <td>操作</td>
        </tr>
        {volist name='list' id='v'}
        <tr class="center">
        	<td>{$i}</td>
            <td><a href="__ROOT__/read/{$v.id}">{$v.title}</a></td>
            <td>{$v.count}</td>
            <td>{$v.create_time}</td>
            {if condition="$name"}
            <td> <a href="__ROOT__/delete/{$v.id}" class="btn btn-danger">删除</a></td>

            {else/}
            <td> </td>
            {/if}
        </tr>
        {/volist}
    </table>
    {$list->render()}
</div>
</body>


<script >
    $(function() {
        $(".input-date").datepicker({
            dateFormat: "yy-mm-dd"
        })
    })
</script>
</html>
